<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/orderStatus.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %>
	<span style="color:red">
		此操作用于通过手动在服务商平台进行订票，本地同步信息!!!
	</span>
	<table cellpadding="0" cellspacing="0" class="mytable">
		<tr>
			<th class="left">平台订单</th>
			<td class="border-top" colspan="3"><input id="terraceSn" value="" />
			</td>
		</tr>
	</table>
<script type="text/dialog">
var api = this,
terraceSn = $('#terraceSn');
api.title('手动出票').button(
	{
		name:'确定',focus:true,
		callback:function(){
			if($.trim(terraceSn.val())==''){
				art.dialog.tips('请输入服务平台订单号!',1);
			}else{
				art.dialog.confirm('确认后，将和今日系统进行同步',function(){
				art.dialog({
				title:'系统提示',
				id:'art_'+terraceSn.val(),
				lock:true,
				content:'系统正在处理中……'
				});
				$.ajax({
				url:'./plane/order_orderSync.shtml',
				data:{sn:terraceSn.val(),cid:${children.id}},
				cache:false,
				type:'POST',
				success:function(result){
					if(result=='T'){
						location.reload();
					}else{
						closeAllDialog();
									art
											.dialog({
												lock: true,
												title : '系统提示',
												content :result
														+ '，2秒后关闭……',
												time : 2,
												close : function() {
													location.reload();
												}
											})
					}
					return false;
				}
			});
			},function(){
				closeAllDialog();
			});
			}
			return false;
		 	
		}
	},
	{
		name:'取消'
	}
);

</script>